package edu.xlh.travel.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import edu.xlh.travel.common.Result;
import edu.xlh.travel.pojo.OnlineUserInfo;
import edu.xlh.travel.pojo.querypojo.QueryOnlineUserInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public interface OnlineUserInfoService {
    Result save(HttpServletRequest request , HttpSession session) throws JsonProcessingException;

    Result findAllOnlineUserInfo(int page, int limit ,HttpSession session);

    Integer getOnlineUserCount();

    Result QueryOnlineUserByCondition(Integer page, Integer limit , QueryOnlineUserInfo queryOnlineUserInfo, HttpSession session);

    Result forceLoginOut(String userId, HttpServletRequest request , HttpSession session);

    Result isActive(HttpSession session);
}
